home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / ipServer / RCS / tcp.h,v < prev    next >
Encoding:
Text File  |  1989-08-16  |  3.6 KB  |  171 lines

  1. head     1.6;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.6
  10. date     89.08.15.19.55.46;  author rab;  state Exp;
  11. branches ;
  12. next     1.5;
  13.  
  14. 1.5
  15. date     89.03.23.09.07.02;  author brent;  state Exp;
  16. branches ;
  17. next     1.4;
  18.  
  19. 1.4
  20. date     89.02.21.10.05.31;  author brent;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     88.08.16.11.22.11;  author mendel;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     88.04.27.09.16.05;  author brent;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     88.04.27.09.01.58;  author brent;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @TCP Protocol defs
  42. @
  43.  
  44.  
  45. 1.6
  46. log
  47. @Commented #endif labels.
  48. @
  49. text
  50. @/*
  51.  * tcp.h --
  52.  *
  53.  *    Declarations of external TCP-related routines.
  54.  *
  55.  * Copyright 1987 Regents of the University of California
  56.  * All rights reserved.
  57.  * Permission to use, copy, modify, and distribute this
  58.  * software and its documentation for any purpose and without
  59.  * fee is hereby granted, provided that the above copyright
  60.  * notice appear in all copies.  The University of California
  61.  * makes no representations about the suitability of this
  62.  * software for any purpose.  It is provided "as is" without
  63.  * express or implied warranty.
  64.  *
  65.  *
  66.  * $Header: /sprite/src/daemons/ipServer/RCS/tcp.h,v 1.5 89/03/23 09:07:02 brent Exp Locker: rab $ SPRITE (Berkeley)
  67.  */
  68.  
  69. #ifndef _IPS_TCP
  70. #define _IPS_TCP
  71.  
  72. #include "sprite.h"
  73.  
  74. /*
  75.  * TCP_BUF_SIZE is the size for the send and recieve socket buffers for
  76.  * a TCP connection.  This size is used in turn to define
  77.  * TCP_REQUEST_BUF_SIZE which is the size of the pseudo-device request
  78.  * buffer.  This size means that if the client writes more that TCP_BUF_SIZE
  79.  * to the pseudo-device the kernel will block it until the first TCP_BUF_SIZE
  80.  * bytes have been removed from the request buffer.  If the request buffer
  81.  * were larger then large writes would only be partially serviced by TCP,
  82.  * and the extra bytes would just have to be re-written by the kernel.
  83.  */
  84. #define TCP_BUF_SIZE        4096
  85. #define TCP_REQUEST_BUF_SIZE    (TCP_BUF_SIZE)
  86.  
  87. extern void        TCP_Init();
  88. extern ReturnStatus    TCP_SocketOpen();
  89. extern ReturnStatus    TCP_SocketClose();
  90. extern ReturnStatus    TCP_SocketRead();
  91. extern ReturnStatus    TCP_SocketWrite();
  92. extern int        TCP_SocketSelect();
  93. extern ReturnStatus    TCP_SocketBind();
  94. extern ReturnStatus    TCP_SocketConnect();
  95. extern ReturnStatus    TCP_SocketListen();
  96. extern ReturnStatus    TCP_SocketAccept();
  97. extern ReturnStatus    TCP_SocketClone();
  98. extern ReturnStatus    TCP_SocketShutdown();
  99. extern ReturnStatus    TCP_SocketGetOpt();
  100. extern ReturnStatus    TCP_SocketSetOpt();
  101. extern void        TCP_SocketDestroy();
  102. extern void        TCP_PrintInfo();
  103.  
  104. #endif /* _IPS_TCP */
  105. @
  106.  
  107.  
  108. 1.5
  109. log
  110. @Eliminated sizeof(Pdev_Request) from buffer sizes.  That extra
  111. amount is handled in main.c so these are not so knowledgable
  112. about the pseudo-device interface.
  113. @
  114. text
  115. @d17 1
  116. a17 1
  117.  * $Header: /sprite/src/daemons/ipServer/RCS/tcp.h,v 1.4 89/02/21 10:05:31 brent Exp $ SPRITE (Berkeley)
  118. d55 1
  119. a55 1
  120. #endif _IPS_TCP
  121. @
  122.  
  123.  
  124. 1.4
  125. log
  126. @Added constants used for the pseudo-device request buffer
  127. @
  128. text
  129. @d17 1
  130. a17 1
  131.  * $Header: /sprite/src/daemons/ipServer/RCS/tcp.h,v 1.3 88/08/16 11:22:11 mendel Exp Locker: brent $ SPRITE (Berkeley)
  132. d36 1
  133. a36 1
  134. #define TCP_REQUEST_BUF_SIZE    (TCP_BUF_SIZE + sizeof(Pdev_Request))
  135. @
  136.  
  137.  
  138. 1.3
  139. log
  140. @Converted to new lib.a.
  141. @
  142. text
  143. @d17 1
  144. a17 1
  145.  * $Header: tcp.h,v 1.2 88/04/27 09:16:05 brent Exp $ SPRITE (Berkeley)
  146. d25 12
  147. @
  148.  
  149.  
  150. 1.2
  151. log
  152. @New version with Jacobson enhancements
  153. @
  154. text
  155. @d17 1
  156. a17 1
  157.  * $Header: tcp.h,v 6.2 88/04/24 23:12:12 andrew Exp $ SPRITE (Berkeley)
  158. @
  159.  
  160.  
  161. 1.1
  162. log
  163. @Initial revision
  164. @
  165. text
  166. @d17 1
  167. a17 1
  168.  * $Header: tcp.h,v 6.0 87/09/08 15:58:05 andrew Stable $ SPRITE (Berkeley)
  169. d38 2
  170. @
  171.